<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>SpringMVC 测试页</title>


    <script type="text/javascript" src="/js/jquery.min.js"></script>

    <script>
        $(function () {

            $("#ajaxBtn").bind("click", function () {
                // 发送ajax请求
                $.ajax({
                    url: '/demo/handle07',
                    type: 'POST',
                    data: '{"id":"1","name":"李四"}',
                    contentType: 'application/json;charset=utf-8',
                    dataType: 'json',
                    success: function (data) {
                        alert(data.name);
                    }
                })

            })


        });

    </script>


    <style>
        div {
            padding: 10px 10px 0 10px;
        }
    </style>
</head>
<body>


<div style="width:800px;">
    <h2>我是服务器：${pageContext.request.localPort}</h2>
    <h2>当前sessionId：${pageContext.session.id}</h2>
    <h2>简历列表</h2>
    <table title="" style="width:800px;height:300px" border="2px">
        <tr>
            <td align="center">序号</td>
            <td align="center">姓名</td>
            <td align="center">地址</td>
            <td align="center">电话</td>
        </tr>
        <c:forEach items="${resumeList}" var="item" varStatus="vs">
            <tr>
                <td align="center">${item.id}</td>
                <td align="center">${item.name}</td>
                <td align="center">${item.address}</td>
                <td align="center">${item.phone}</td>
            </tr>
        </c:forEach>
    </table>
</div>

</body>
</html>
